package com.dingup.api.adapter.classInfo;

import com.dingup.api.model.classInfo.ClassInfo;
import com.dingup.api.model.classInfo.ClassUserInfo;
import com.dingup.api.model.lesson.LessonInfo;
import com.dingup.api.model.lesson.LessonSubjectInfo;

import java.util.List;

/**
 * Created by wancheng on 2018/9/26.
 */
public class ClassInfoAdapter extends ClassInfo{



    private LessonInfo lessonInfo;

    private List<LessonSubjectInfo> subjectInfos;

    private List<ClassUserInfo> members;

    private Integer pkLessonNum;

    private Boolean ifHasPreLesson;


    public ClassInfoAdapter() {
    }

    public ClassInfoAdapter(ClassInfo classInfo) {
        setId(classInfo.getId());
        setClassName(classInfo.getClassName());
        setClassType(classInfo.getClassType());
        setLessonId(classInfo.getLessonId());
        setBeginTime(classInfo.getBeginTime());
        setEndTime(classInfo.getEndTime());
        setStatus(classInfo.getStatus());
        setCreateUserId(classInfo.getCreateUserId());
        setCreateTime(classInfo.getCreateTime());
        setClassTeacher(classInfo.getClassTeacher());
        setTeachers(classInfo.getTeachers());
        setStudents(classInfo.getStudents());
        setSchoolCampus(classInfo.getSchoolCampus());
        setLessonName(classInfo.getLessonName());
        setIfDelete(classInfo.getIfDelete());
        setStudentNum(classInfo.getStudentNum());
        setBeginTimeString(classInfo.getBeginTimeString());
        setEndTimeString(classInfo.getEndTimeString());
        setExam(classInfo.getExam());
        setSchoolCampusMap(classInfo.getSchoolCampusMap());
        setExamString(classInfo.getExamString());
        setOperaUserId(classInfo.getOperaUserId());
    }

    public LessonInfo getLessonInfo() {
        return lessonInfo;
    }

    public void setLessonInfo(LessonInfo lessonInfo) {
        this.lessonInfo = lessonInfo;
    }

    public List<ClassUserInfo> getMembers() {
        return members;
    }

    public void setMembers(List<ClassUserInfo> members) {
        this.members = members;
    }

    public List<LessonSubjectInfo> getSubjectInfos() {
        return subjectInfos;
    }

    public void setSubjectInfos(List<LessonSubjectInfo> subjectInfos) {
        this.subjectInfos = subjectInfos;
    }

    public Integer getPkLessonNum() {
        return pkLessonNum;
    }

    public void setPkLessonNum(Integer pkLessonNum) {
        this.pkLessonNum = pkLessonNum;
    }

    public Boolean getIfHasPreLesson() {
        return ifHasPreLesson;
    }

    public void setIfHasPreLesson(Boolean ifHasPreLesson) {
        this.ifHasPreLesson = ifHasPreLesson;
    }

    public void clean(){
        this.members = null;
    }
}
